package com.zllkj.mm.api.remote;

import com.zllkj.mm.api.network.BaseResponse;
import com.zllkj.mm.api.network.subscriber.BaseString;
import com.zllkj.mm.model.entity.AddressBeanVo;
import com.zllkj.mm.model.entity.AddressListOutSideBean;
import com.zllkj.mm.model.entity.ShoppingCartListBean;


import java.util.List;
import java.util.Map;

import retrofit2.http.Body;
import retrofit2.http.POST;
import rx.Observable;

public interface AddressApi {
    @POST("receivingAddress/findDefault")
    Observable<BaseResponse<AddressBeanVo>> getDefaultAddress(@Body Map<String, Object> map);

    @POST("receivingAddress/deleteBatch")
    Observable<BaseResponse<Object>> deleteAddress(@Body Map<String, Object> map);

    @POST("receivingAddress/findById")
    Observable<BaseResponse<AddressBeanVo>> findAddressById(@Body Map<String, Object> map);

    @POST("receivingAddress/list")
    Observable<BaseResponse<AddressListOutSideBean>> getAddressList(@Body Map<String, Object> map);

    @POST("receivingAddress/add")
    Observable<BaseResponse<AddressBeanVo>> addNewAddress(@Body Map<String, Object> map);

    @POST("receivingAddress/edit")
    Observable<BaseResponse<Object>> editAddress(@Body Map<String, Object> map);

}
